<template>
	<div class="mac-header">
		<div class="icon">
			<i
				class="iconfont el-icon-close close"
				@click="$electron.ipcRenderer.send('setting-close')"
			></i>
			<i
				class="iconfont icon-window-min min"
				@click="$electron.ipcRenderer.send('setting-minimize')"
			></i>
			<i
				class="iconfont max icon-zuidahua"
				@click="$message.error('设置窗口禁止放大操作！')"
			></i>
		</div>
		<div class="title">BiliBili 直播姬 - 设置</div>
	</div>
</template>

<script>
export default {};
</script>

<style lang="scss">
.mac-header {
	position: relative;
	background-color: #f9eff0;
	height: 36px;
	border-bottom: 2px solid #e4e7ed;
	-webkit-app-region: drag;
	.icon {
		display: flex;
		align-items: center;
		position: absolute;
		height: 100%;
		padding-left: 5px;
		i {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 15px;
			height: 15px;
			font-size: 0;
			border-radius: 50%;
			margin-left: 5px;
			color: rgba(0, 0, 0, 0.7);
			-webkit-app-region: no-drag;
			cursor: pointer;
			&.close {
				padding-top: 1.45px;
				background-color: #fe5f55;
			}
			&.min {
				padding-bottom: 4px;
				background-color: #f1c23f;
			}
			&.max {
				background-color: #52c84a;
			}
		}
		&:hover {
			i {
				&.close {
					font-size: 11px;
				}
				&.min {
					font-size: 18px;
				}
				&.max {
					font-size: 10px;
				}
			}
		}
	}
	.title {
		line-height: 34px;
		text-align: center;
		font-weight: bold;
		font-size: 14px;
		color: rgba(0, 0, 0, 0.7);
	}
}
</style>
